﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Assembly.aspx.cs" Inherits="SalesManagement.Modules.Warehouse.Assembly" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Phiếu lấp đặt tháo dở</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Toolbar ID="tbMain" runat="server">
        <Items>
            <ext:ToolbarSpacer />
            <ext:Button ID="btnSave" runat="server" Text="Cập nhật" Icon="Tablesave">
                <DirectEvents>
                    <Click OnEvent="btnSaveExit_Click" />
                </DirectEvents>
            </ext:Button>
            <ext:Button ID="Button1" runat="server" Text="Lưu" Icon="Disk">
                <DirectEvents>
                    <Click OnEvent="btnSave_Click" />
                </DirectEvents>
            </ext:Button>
            <ext:Button ID="Button2" runat="server" Text="Thoát" Icon="Decline">
                <DirectEvents>
                    <Click OnEvent="btnExit_Click" />
                </DirectEvents>
            </ext:Button>
        </Items>
    </ext:Toolbar>
    <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
        <Items>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <North MarginsSummary="30 0 0 0">
                    <ext:Panel ID="Panel0" runat="server" Frame="true" Height="140" Layout="ColumnLayout"
                        Border="false">
                        <Defaults>
                            <ext:Parameter Name="Anchor" Value="99%">
                            </ext:Parameter>
                        </Defaults>
                        <Items>
                            <ext:Panel ID="Panel4" runat="server" ColumnWidth="0.5" Layout="FormLayout" LabelWidth="100"
                                Border="true">
                                <Defaults>
                                    <ext:Parameter Name="Anchor" Value="99%">
                                    </ext:Parameter>
                                </Defaults>
                                <Items>
                                    <ext:TextField ID="TextField1" runat="server" FieldLabel="Số phiếu" />
                                    <ext:ComboBox ID="ComboBox1" runat="server" FieldLabel="Kho xuất NL" Editable="false"
                                        DataIndex="Title" Flex="1">
                                        <Items>
                                            <ext:ListItem Text="kho A" Value="hcm" />
                                            <ext:ListItem Text="kho B" Value="hn" />
                                        </Items>
                                        <SelectedItem Value="hcm" />
                                    </ext:ComboBox>
                                    <ext:ComboBox ID="ComboBox2" FieldLabel="Nhân viên" runat="server" Editable="false"
                                        DataIndex="Title" Flex="1">
                                        <Items>
                                            <ext:ListItem Text="Nguyễn Văn A" Value="hcm" />
                                            <ext:ListItem Text="Nguyễn Văn B" Value="hn" />
                                        </Items>
                                        <SelectedItem Value="hcm" />
                                    </ext:ComboBox>
                                </Items>
                            </ext:Panel>
                            <ext:Panel ID="Panel5" runat="server" ColumnWidth="0.5" Layout="FormLayout" LabelWidth="100"
                                Border="false">
                                <Defaults>
                                    <ext:Parameter Name="Anchor" Value="99%">
                                    </ext:Parameter>
                                </Defaults>
                                <Items>
                                    <ext:DateField ID="DateField1" runat="server" FieldLabel="Ngày" Flex="1" />
                                    <ext:ComboBox ID="ComboBox3" runat="server" FieldLabel="Kho nhập TP" Editable="false"
                                        DataIndex="Title" Flex="1">
                                        <Items>
                                            <ext:ListItem Text="kho A" Value="hcm" />
                                            <ext:ListItem Text="kho B" Value="hn" />
                                        </Items>
                                        <SelectedItem Value="hn" />
                                    </ext:ComboBox>
                                    <ext:TextArea ID="TextArea2" runat="server" FieldLabel="Ghi chú" Flex="1" />
                                </Items>
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                </North>
                <Center>
                    <ext:Panel ID="Panel1" runat="server" Layout="RowLayout">
                        <Items>
                            <ext:GridPanel ID="GridPanel1" runat="server" Margins="0 0 5 5" AutoExpandColumn="pro_Name"
                                RowHeight="1" Border="false">
                                <Store>
                                    <ext:Store ID="Store1" runat="server">
                                        <Reader>
                                            <ext:JsonReader IDProperty="pro_ID">
                                                <Fields>
                                                    <ext:RecordField Name="pro_ID" />
                                                    <ext:RecordField Name="pro_Name" />
                                                    <ext:RecordField Name="pro_unit" />
                                                    <ext:RecordField Name="pro_amount" />
                                                    <ext:RecordField Name="pro_price" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel ID="ColumnModel1" runat="server">
                                    <Columns>
                                        <ext:Column ColumnID="pro_ID" DataIndex="pro_ID" Header="Mã thành phẩm" />
                                        <ext:Column DataIndex="pro_Name" Header="Tên thành phẩm" />
                                        <ext:Column DataIndex="pro_unit" Header="Đơn vị tính" />
                                        <ext:Column DataIndex="pro_amount" Header="Số lượng" />
                                        <ext:Column DataIndex="pro_price" Header="Chi phí" />
                                    </Columns>
                                </ColumnModel>
                                <LoadMask ShowMask="true" />
                            </ext:GridPanel>
                        </Items>
                    </ext:Panel>
                </Center>
                <West>
                    <ext:Panel ID="Panel6" runat="server" Width="300" Layout="RowLayout">
                        <Items>
                            <ext:GridPanel ID="GridPanel3" runat="server" Split="true" Margins="0 5 5 5" RowHeight="1"
                                Width="400" DefaultAnchor="100%" Border="false">
                                <Store>
                                    <ext:Store ID="Store3" runat="server">
                                        <Reader>
                                            <ext:JsonReader IDProperty="pro_Name2">
                                                <Fields>
                                                    <ext:RecordField Name="pro_Name2" />
                                                    <ext:RecordField Name="pro_Unit2" />
                                                    <ext:RecordField Name="pro_Amount2" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <ColumnModel ID="ColumnModel3" runat="server">
                                    <Columns>
                                        <ext:Column ColumnID="pro_Name2" DataIndex="pro_Name2" Header="Nguyên liệu" />
                                        <ext:Column DataIndex="pro_Unit2" Header="ĐVT" />
                                        <ext:Column DataIndex="pro_Amount2" Header="Số lượng" />
                                    </Columns>
                                </ColumnModel>
                                <LoadMask ShowMask="true" />
                            </ext:GridPanel>
                        </Items>
                    </ext:Panel>
                </West>
            </ext:BorderLayout>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
